package com.min.main.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.impl.StringArraySerializer;
import com.fasterxml.jackson.databind.ser.impl.StringCollectionSerializer;
import com.fasterxml.jackson.databind.ser.std.NumberSerializers;
import com.fasterxml.jackson.databind.ser.std.StdArraySerializers;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.datatype.jdk8.LongStreamSerializer;
import com.google.gson.LongSerializationPolicy;
import com.min.common.entity.BaseEntity;

import java.util.Date;
import java.util.List;

import com.min.common.serializer.LongArray2StringSerialize;
import lombok.Data;

/**
 * 角色表
 * 
 * @author fengt
 * @date 2021-06-23 11:41:08
 */
@Data
@TableName("min_role")
public class RoleEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	* 角色编码
	*/
	private String code;
	/**
	* 角色名称
	*/
	private String name;
	/**
	* 角色描述
	*/
	private String description;

	@TableField(exist = false)
	@JsonSerialize(using = LongArray2StringSerialize.class)
	private List<Long> menuIdList;

	@TableField(exist = false)
	private List<String> permissions;

}
